package org.jeeasy.system.modules.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.dromara.mpe.autotable.annotation.Column;
import org.dromara.mpe.autotable.annotation.ColumnId;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户部门表
 *
 * @author AlpsDDJ
 * @version v1.0
 * @date 2020-11-21
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SysUserDept extends Model<SysUserDept> implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @ColumnId(mode = IdType.ASSIGN_ID, length = 24, comment = "ID")
    private String id;

    /**
     * 用户ID
     */
    @Column(comment = "用户ID", length = 24)
    private String userId;

    /**
     * 部门ID
     */
    @Column(comment = "部门ID", length = 24)
    private String deptId;

    public SysUserDept(String userId, String deptId) {
        this.userId = userId;
        this.deptId = deptId;
    }
}
